home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / DEVS.MAK < prev    next >
Text File  |  1992-03-25  |  15KB  |  409 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript device drivers.
  21.  
  22. # -------------------------------- Catalog ------------------------------- #
  23.  
  24. # It is possible to build Ghostscript with an arbitrary collection of
  25. # device drivers, although some drivers are supported only on a subset
  26. # of the target platforms.  The currently available drivers are:
  27.  
  28. # Displays:
  29. #   MS-DOS EGA and VGA:
  30. #    ega    EGA (640x350, 16-color)
  31. #    vga    VGA (640x480, 16-color)
  32. #   MS-DOS SuperVGA:
  33. #   ****** NOTE: these devices do not work with the Watcom (32-bit MS-DOS)
  34. #   ****** compiler or executable.
  35. # +    atiw    ATI Wonder SuperVGA
  36. # *    mdb10    EIZO MDB-10 (1024 x 768)
  37. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips
  38. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  39. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  40. #    vesa    SuperVGA with VESA standard API
  41. #   MS-DOS other:
  42. #    bgi    Borland Graphics Interface (CGA and Hercules)
  43. # *    pe    Private Eye
  44. #   Unix and VMS:
  45. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  46. # *    sunview  SunView window system   [SunOS only]
  47. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  48. # Printers:
  49. #    bj10e    Canon BubbleJet BJ10e
  50. # *    cdeskjet  H-P DeskJet 500C
  51. # +    deskjet  H-P DeskJet and DeskJet Plus
  52. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  53. # *    dfaxlow  DigiFAX low (normal) resolution
  54. #    djet500  H-P DeskJet 500
  55. # *    djet500c  H-P DeskJet 500C
  56. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  57. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  58. # +    laserjet  H-P LaserJet
  59. # *    lbp8    Canon LBP-8II laser printer
  60. # *    ln03    DEC LN03 printer   [Ultrix only?]
  61. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  62. # +    ljet3    H-P LaserJet III* with Delta Row compression
  63. # *    ljetplus  H-P LaserJet Plus
  64. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  65. #    paintjet  H-P PaintJet color printer
  66. # *    r4081    Ricoh 4081 laser printer
  67. # *    trufax    TruFax facsimile driver  [Unix only]
  68. # File formats and others:
  69. #    bit    A "bit bucket" device for time benchmarking
  70.  
  71. # User-contributed drivers marked with * require hardware or software
  72. # that is not available to Aladdin Enterprises.  Please contact the
  73. # original contributors, not Aladdin Enterprises, if you have questions.
  74. # Contact information appears in the driver entry below.
  75. #
  76. # Drivers marked with a + are maintained by Aladdin Enterprises with
  77. # the assistance of users, since Aladdin Enterprises doesn't have access to
  78. # the hardware for these either.
  79.  
  80. # If you add drivers, it would be nice if you kept each list
  81. # in alphabetical order.
  82.  
  83. # Each platform-specific makefile must contain a line of the form
  84. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  85. # where dev1 ... devn are the devices to be included in the build.
  86. # dev1 will be used as the default device.
  87. # On MS-DOS platforms, this line must appear before the lines
  88. #    (!)include gs.mak
  89. #    (!)include devs.mak
  90. # in the makefile; on Unix systems, the device definition line
  91. # may appear anywhere in the makefile.
  92.  
  93. # ---------------------------- End of catalog ---------------------------- #
  94.  
  95. # If you want to add a new device driver, the examples below should be
  96. # enough of a guide to the correct form for the makefile rules.
  97.  
  98. # All device drivers depend on the following:
  99. GDEV=$(AK) $(gx_h) $(gxdevice_h)
  100.  
  101. ###### ------------------- MS-DOS display devices ------------------- ######
  102.  
  103. # There are really only two drivers: an EGA/VGA driver (4 bit-planes,
  104. # plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
  105.  
  106. ### ----------------------- EGA and VGA displays ----------------------- ###
  107.  
  108. gdevegaa.$(OBJ): gdevegaa.asm
  109.  
  110. ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
  111. ega.exe: $(ETEST) libc$(MM).tr
  112.     tlink /m /l $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  113.  
  114. ega.$(OBJ): ega.c $(GDEV)
  115.  
  116. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  117. # or an empty string.
  118.  
  119. EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
  120.  
  121. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h)
  122.     $(CCC) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  123.  
  124. # The EGA/VGA family includes: EGA, VGA, MDB-10, and the
  125. # Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
  126.  
  127. ega.dev: $(EGAVGA)
  128.     $(SHP)gssetdev ega $(EGAVGA)
  129.  
  130. vga.dev: $(EGAVGA)
  131.     $(SHP)gssetdev vga $(EGAVGA)
  132.  
  133. mdb10.dev: $(EGAVGA)
  134.     $(SHP)gssetdev mdb10 $(EGAVGA)
  135.  
  136. tseng16.dev: $(EGAVGA)
  137.     $(SHP)gssetdev tseng16 $(EGAVGA)
  138.  
  139. tvga16.dev: $(EGAVGA)
  140.     $(SHP)gssetdev tvga16 $(EGAVGA)
  141.  
  142. ### ------------------------- SuperVGA displays ------------------------ ###
  143.  
  144. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  145.  
  146. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h)
  147.     $(CCC) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  148.  
  149. # The SuperVGA family includes: ATI Wonder, Tseng ET3000/4000, and VESA.
  150.  
  151. atiw.dev: $(SVGA)
  152.     $(SHP)gssetdev atiw $(SVGA)
  153.  
  154. tseng.dev: $(SVGA)
  155.     $(SHP)gssetdev tseng $(SVGA)
  156.  
  157. vesa.dev: $(SVGA)
  158.     $(SHP)gssetdev vesa $(SVGA)
  159.  
  160. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  161.  
  162. # We should use an implicit rule for running bgiobj,
  163. # but a bug in Borland's `make' utility makes this not work.
  164.  
  165. cga.$(OBJ): $(BGIDIR)\cga.bgi
  166.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  167.  
  168. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  169.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  170.  
  171. herc.$(OBJ): $(BGIDIR)\herc.bgi
  172.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  173.  
  174. # Include egavga.$(OBJ) for debugging only.
  175. bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
  176. bgi.dev: $(bgi_)
  177.     $(SHP)gssetdev bgi $(bgi_)
  178.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  179.  
  180. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
  181.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
  182.  
  183. ###### ------------------- The Private Eye display ------------------- ######
  184. ### Note: this driver was contributed by a user:                          ###
  185. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  186.  
  187. pe_=gdevpe.$(OBJ)
  188. pe.dev: $(pe_)
  189.     $(SHP)gssetdev pe $(pe_)
  190.  
  191. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  192.  
  193. ###### --------------- Memory-buffered printer devices --------------- ######
  194.  
  195. PDEVH=$(GDEV) $(gxdevmem_h) $(gxclist_h) $(gdevprn_h)
  196.  
  197. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  198.  
  199. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  200.  
  201. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  202. bj10e.dev: $(bj10e_)
  203.     $(SHP)gssetdev bj10e $(bj10e_)
  204.  
  205. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  206.  
  207. ### -------------------------- The DigiFAX device ----------------------- ###
  208. ###    This driver outputs images in a format suitable for use with       ###
  209. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  210. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  211. ### Note: this driver was contributed by a user: please contact           ###
  212. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  213.  
  214. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  215. dfaxhigh.dev: $(digifax_)
  216.     $(SHP)gssetdev dfaxhigh $(digifax_)
  217.  
  218. dfaxlow.dev: $(digifax_)
  219.     $(SHP)gssetdev dfaxlow $(digifax_)
  220.  
  221. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  222.  
  223. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  224.  
  225. ### These are essentially the same device.
  226.  
  227. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  228. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  229.  
  230. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  231.  
  232. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  233.  
  234. deskjet.dev: $(HPMONO)
  235.     $(SHP)gssetdev deskjet $(HPMONO)
  236.  
  237. djet500.dev: $(HPMONO)
  238.     $(SHP)gssetdev djet500 $(HPMONO)
  239.  
  240. laserjet.dev: $(HPMONO)
  241.     $(SHP)gssetdev laserjet $(HPMONO)
  242.  
  243. ljetplus.dev: $(HPMONO)
  244.     $(SHP)gssetdev ljetplus $(HPMONO)
  245.  
  246. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  247. ### IIIp, IIId, IIIsi, IId, and IIp. 
  248.  
  249. ljet2p.dev: $(HPMONO)
  250.     $(SHP)gssetdev ljet2p $(HPMONO)
  251.  
  252. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  253. ### IIIp, IIId, IIIsi.
  254.  
  255. ljet3.dev: $(HPMONO)
  256.     $(SHP)gssetdev ljet3 $(HPMONO)
  257.  
  258. ### ------------ The H-P DeskJet 500C color printer device -------------- ###
  259. ### Note: there are two different 500C drivers, both contributed by users.###
  260. ###   If you have questions about the djet500c driver,                    ###
  261. ###       please contact AKayser@et.tudelft.nl.                           ###
  262. ###   If you have questions about the cdeskjet driver,                    ###
  263. ###       please contact g.cameron@aberdeen.ac.uk.                        ###
  264.  
  265. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  266. cdeskjet.dev: $(cdeskjet_)
  267.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  268.  
  269. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  270.  
  271. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  272. djet500c.dev: $(djet500c_)
  273.     $(SHP)gssetdev djet500c $(djet500c_)
  274.  
  275. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  276.  
  277. ### ----------------- The generic Epson printer device ----------------- ###
  278.  
  279. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  280. epson.dev: $(epson_)
  281.     $(SHP)gssetdev epson $(epson_)
  282.  
  283. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
  284.  
  285. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  286. ### Note: this driver was contributed by users: please contact           ###
  287. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  288.  
  289. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  290. epsonc.dev: $(epsonc_)
  291.     $(SHP)gssetdev epsonc $(epsonc_)
  292.  
  293. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
  294.  
  295. ### ------------ The H-P PaintJet color printer device ----------------- ###
  296.  
  297. paintjet_=gdevpjet.$(OBJ) $(HPPCL)
  298. paintjet.dev: $(paintjet_)
  299.     $(SHP)gssetdev paintjet $(paintjet_)
  300.  
  301. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  302.  
  303. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  304. ### Note: this driver was contributed by users: please contact           ###
  305. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  306. ### Note that the standard paper size for this driver is the European    ###
  307. ###   A4 size, not the American 8.5" x 11" size.                         ###
  308.  
  309. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  310. lbp8.dev: $(lbp8_)
  311.     $(SHP)gssetdev lbp8 $(lbp8_)
  312.  
  313. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  314.  
  315. ### ----------------- The DEC LN03 printer device ---------------------- ###
  316. ### Note: this driver was contributed by users: please contact           ###
  317. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  318. ### A more general sixel driver is available from                        ###
  319. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  320.  
  321. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  322. ln03.dev: $(ln03_)
  323.     $(SHP)gssetdev ln03 $(ln03_)
  324.  
  325. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  326.  
  327. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  328. ### Note: this driver was contributed by users:                          ###
  329. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  330.  
  331. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  332. r4081.dev: $(r4081_)
  333.     $(SHP)gssetdev r4081 $(r4081_)
  334.  
  335. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  336.  
  337. ###### ------------------------ Sony devices ------------------------ ######
  338. ### Note: these drivers were contributed by users: please contact        ###
  339. ###       Mike Smolenski (mike@srava.sra.co.jp) if you have questions.   ###
  340.  
  341. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  342.  
  343. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  344. sonyfb.dev: $(sonyfb_)
  345.     $(SHP)gssetdev sonyfb $(sonyfb_)
  346.  
  347. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  348.  
  349. ### -------------------- Sony NWP533 printer device -------------------- ###
  350.  
  351. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  352. nwp533.dev: $(nwp533_)
  353.     $(SHP)gssetdev nwp533 $(nwp533_)
  354.  
  355. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  356.  
  357. ###### --------------------- The SunView device --------------------- ######
  358.  
  359. sunview_=gdevsun.$(OBJ)
  360. sunview.dev: $(sunview_)
  361.     $(SHP)gssetdev sunview $(sunview_)
  362.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  363.  
  364. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  365.  
  366. ### ----------------- The TruFax facsimile device ---------------------- ###
  367. ### Note: this driver was contributed by users:                          ###
  368. ###       please contact nao@maestro.bellcore.com if you have questions. ###
  369. ### Note that the driver requires a file encode_l.o supplied by the      ###
  370. ###   makers of the TruFax product.                                      ###
  371.  
  372. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  373. trufax.dev: $(trufax_)
  374.     $(SHP)gssetdev trufax $(trufax_)
  375.  
  376. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  377.  
  378. ###### ----------------------- The X11 device ----------------------- ######
  379.  
  380. # Note that this includes some extra libraries to support Ghostview.
  381. # Xt and Xext are included because on SunOS, some routine in Xmu calls
  382. # XtMalloc, and something in Xt calls something in Xext, and Sun's
  383. # dynamic library scheme requires pulling in all 3 libraries.
  384. # On other operating systems, only Xmu is needed.
  385.  
  386. # Aladdin Enterprises does not support Ghostview.  For more information
  387. # about Ghostview, contact Tim Theisen (ghostview@cs.wisc.edu).
  388.  
  389. x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
  390. x11.dev: $(x11_)
  391.     $(SHP)gssetdev x11 $(x11_)
  392.     $(SHP)gsaddmod x11 -lib Xmu Xt Xext X11
  393.  
  394. # See the main makefile for the definition of XINCLUDE.
  395. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  396. gdevx.$(OBJ): gdevx.c $(GDEVX)
  397.     $(CCC) $(XINCLUDE) gdevx.c
  398.  
  399. gdevxini.$(OBJ): gdevxini.c $(GDEVX)
  400.     $(CCC) $(XINCLUDE) gdevxini.c
  401.  
  402. ### ---------------------- The bit bucket device ----------------------- ###
  403.  
  404. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  405. bit.dev: $(bit_)
  406.     $(SHP)gssetdev bit $(bit_)
  407.  
  408. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  409.